package com.dragon.blog.feign.service;

import com.dragon.blog.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @INFO:
 * @AUTHOR NAIZUI
 * @CLASSNAME FeignService.java
 * @CREATETIME 2021-09-28 16:01
 */
@FeignClient("blog-apis-cms")
@Repository
public interface FeignService {

    @RequestMapping("/cms/log/list")
    public R list(@RequestParam Map<String, Object> params);
}
